from uuid import uuid4
from vquant.store import Store


class Order(Store):
    columns = ['id', 'datetime', 'symbol', 'side', 'price', 'quantity', 'commission', 'profit', 'state']

    Sides = range(2)
    Buy, Sell = Sides

    Status = range(3)
    Created, Filled, Rejected = Status

    @staticmethod
    def id():
        return str(uuid4())


__all__ = [Order]
